
-- $Id: ControlFrame.lua 71 2009-04-06 04:43:41Z Fylgjas $

-- ========================================================================= --
-- Copyright © 2009 Thomas ROBERT (aka Fylgjas EU - Marécage de Zangar)      --
-- ========================================================================= --
-- This file is part of FyLooter.                                            --
--                                                                           --
-- FyLooter is free software: you can redistribute it and/or modify it under --
-- the terms of the GNU General Public License as published by the Free      --
-- Software Foundation, either version 3 of the License, or (at your option) --
-- any later version.                                                        --
--                                                                           --
-- FyLooter is distributed in the hope that it will be useful, but WITHOUT   --
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or     --
-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for  --
-- more details.                                                             --
--                                                                           --
-- You should have received a copy of the GNU General Public License along   --
-- with FyLooter. If not, see <http://www.gnu.org/licenses/>.                --
-- ========================================================================= --

local revision = tonumber(string.sub("$Rev: 71 $", 7, -3));

if (FyLooter.revision < revision) then
  FyLooter.revision = revision;
end

-- ========================================================================= --



-- ========================================================================= --

-- 
-- FyLooter:CreateControlFrame()
--
function FyLooter:CreateControlFrame(parent)
  -- ControlFrame
  local ControlFrame = CreateFrame("Frame", nil, parent);
  ControlFrame:Hide();
  ControlFrame:SetHeight(36);
  ControlFrame:SetBackdrop(FyLooter.db.settings.backdrop);

  -- ControlFrame.OkButton
  ControlFrame.OkButton = CreateFrame("Button", nil, ControlFrame, "UIPanelButtonTemplate");
  ControlFrame.OkButton:SetWidth(80);
  ControlFrame.OkButton:SetHeight(22);
  ControlFrame.OkButton:SetPoint("CENTER");
  ControlFrame.OkButton:SetText("Ok");

  -- ControlFrame.CancelButton
  ControlFrame.CancelButton = CreateFrame("Button", nil, ControlFrame, "UIPanelButtonTemplate");
  ControlFrame.CancelButton:SetWidth(80);
  ControlFrame.CancelButton:SetHeight(22);
  ControlFrame.CancelButton:SetPoint("RIGHT", -7, 0);
  ControlFrame.CancelButton:SetText("Cancel");
  
  return ControlFrame;
end

-- ========================================================================= --

